/*package com.text;


public class WordCountMain {
    public WordCountMain(String[] args) throws Exception {
        Configuration configuration = new Configuration();

        Job job = Job.getInstance(configuration, "word_count");

        job.setJarByClass(WordCountMain.class);

        job.setMapperClass(MyMapper.class);
        job.setReducerClass(MyReducer.class);

        job.setMapOutputKeyClass(Text.class);
        job.setOutputValueClass(LongWritable.class);
        job.setOutputKeyClass(Text.class);

        FileInputFormat.setInputPaths(job, new Path(args[0]));
        FileOutputFormat.setOutputPath(job, new Path(args[1]));

        System.out.println(job.waitForCompletion(true) ? "运行成功" : "运行失败");
    }

    public static void main(String[] args) {
        try {
            WordCountMain wordCountMain = new WordCountMain(args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
*/